package datafactory;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

public class DataFactory {
	public static Object loadRoadGraph(String fileName) throws FileNotFoundException, IOException, ClassNotFoundException{
		ObjectInputStream ois= new ObjectInputStream(new FileInputStream(
					fileName));
		return ois.readObject(); 
	}
}
